package com.openbravo.data.gui;

import com.openbravo.data.user.DirtyListener;
import com.openbravo.data.user.DirtyManager;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;

public class JLabelDirty extends JLabel
{
  private static Icon m_IconModif = null;
  private static Icon m_IconNull = null;

  public JLabelDirty(DirtyManager paramDirtyManager)
  {
    if (m_IconModif == null)
      m_IconModif = new ImageIcon(getClass().getResource("/com/openbravo/images/edit.png"));
    if (m_IconNull == null)
      m_IconNull = new NullIcon(16, 16);
    paramDirtyManager.addDirtyListener(new DirtyListener()
    {
      public void changedDirty(boolean paramBoolean)
      {
        JLabelDirty.this.setIcon(paramBoolean ? JLabelDirty.m_IconModif : JLabelDirty.m_IconNull);
      }
    });
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.gui.JLabelDirty
 * JD-Core Version:    0.6.0
 */